package com.example.demo.mapper;

import com.example.demo.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ArticleMapper {

    @Select("select ta.*, tb.name,tb.age from articleinfo ta " +
            "left join userinfo tb on ta.uid = tb.id " +
    "where ta.id = #{articleId}")
    ArticleInfo queryArticleUserInfo(Integer id);
}
